<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/one16.ico">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/one16.ico">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/one16.ico">
  <link rel="mask-icon" href="/images/one16.ico" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.2/css/all.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css">

<script class="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"www.yangzaikongzhongfei.com","root":"/","images":"/images","scheme":"Gemini","version":"8.2.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":true,"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"},"path":"/search.xml","localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false}};
  </script>
<meta name="description" content="安装Mysql前： ​    1、如果：你（曾经安装过)，需要（先卸载干净）， 否则是（装不上）的。所以先谈（卸载） ​    2、如果：你没有（安装过），这是（第一次安装）， 请直接看（第2部分）Mysql安装教程。">
<meta property="og:type" content="article">
<meta property="og:title" content="mySql安装教程">
<meta property="og:url" content="https://www.yangzaikongzhongfei.com/2021/03/15/mySql%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/index.html">
<meta property="og:site_name" content="剑客白丁 Blog">
<meta property="og:description" content="安装Mysql前： ​    1、如果：你（曾经安装过)，需要（先卸载干净）， 否则是（装不上）的。所以先谈（卸载） ​    2、如果：你没有（安装过），这是（第一次安装）， 请直接看（第2部分）Mysql安装教程。">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225100139275.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225100652279.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225101506730.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225102143059.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225101930080.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225103504095.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225105441638.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225105551371.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225110504945.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225111135015.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225113322331.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225113736364.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225114129657.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225113855222.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225114831129.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225114927546.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225115502984.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225115605516.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225115729705.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225115819999.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225120526443.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225120617593.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225120644968.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225121009744.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225121045426.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225121126061.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225121531322.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225122009120.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225122953526.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225123601921.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225124646562.png">
<meta property="og:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225125322459.png">
<meta property="article:published_time" content="2021-03-15T08:29:05.000Z">
<meta property="article:modified_time" content="2021-03-17T07:53:18.971Z">
<meta property="article:author" content="作者:何锦洋">
<meta property="article:tag" content="数据库">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225100139275.png">


<link rel="canonical" href="https://www.yangzaikongzhongfei.com/2021/03/15/mySql%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/">


<script class="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>
<title>mySql安装教程 | 剑客白丁 Blog</title>
  




  <noscript>
  <style>
  body { margin-top: 2rem; }

  .use-motion .menu-item,
  .use-motion .sidebar,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header {
    visibility: visible;
  }

  .use-motion .header,
  .use-motion .site-brand-container .toggle,
  .use-motion .footer { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle,
  .use-motion .custom-logo-image {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line {
    transform: scaleX(1);
  }

  .search-pop-overlay, .sidebar-nav { display: none; }
  .sidebar-panel { display: block; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <h1 class="site-title">剑客白丁 Blog</h1>
      <i class="logo-line"></i>
    </a>
      <p class="site-subtitle" itemprop="description">世界那么大，总会遇到欣赏我的人。</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu">
        <li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li>
        <li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li>
        <li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li>
        <li class="menu-item menu-item-about"><a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup"><div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off" maxlength="80"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close" role="button">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div class="search-result-container no-result">
  <div class="search-result-icon">
    <i class="fa fa-spinner fa-pulse fa-5x"></i>
  </div>
</div>

    </div>
  </div>

</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#1%E3%80%81Mysql%E5%BD%BB%E5%BA%95%E5%8D%B8%E8%BD%BD"><span class="nav-text">1、Mysql彻底卸载</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#1-1%E3%80%81-%E5%8D%B8%E8%BD%BDMysql-%E8%BD%AF%E4%BB%B6"><span class="nav-text">1.1、 卸载Mysql(软件)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#1-2%E3%80%81%E5%88%A0%E9%99%A4Mysql-%E6%AE%8B%E7%95%99%E6%96%87%E4%BB%B6"><span class="nav-text">1.2、删除Mysql(残留文件)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#1-3%E3%80%81-%E5%88%A0%E9%99%A4mysql-%E6%B3%A8%E5%86%8C%E8%A1%A8"><span class="nav-text">1.3、 删除mysql(注册表)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#1-4%E3%80%81%E9%87%8D%E5%90%AF%E7%94%B5%E8%84%91"><span class="nav-text">1.4、重启电脑</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#2%E3%80%81%E5%AE%89%E8%A3%85Mysql"><span class="nav-text">2、安装Mysql</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#2-1%E3%80%81%E5%AE%98%E7%BD%91%E5%AE%89%E8%A3%85"><span class="nav-text">2.1、官网安装</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-2%E3%80%81%E9%80%89%E6%8B%A9%E7%89%88%E6%9C%AC"><span class="nav-text">2.2、选择版本</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-3%E3%80%81%E6%AD%A3%E5%BC%8F%E5%AE%89%E8%A3%85"><span class="nav-text">2.3、正式安装</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-4%E3%80%81%E9%85%8D%E7%BD%AE%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F"><span class="nav-text">2.4、配置环境变量</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-5%E3%80%81%E6%B5%8B%E8%AF%95%EF%BC%9A%E6%98%AF%E5%90%A6%E5%AE%89%E8%A3%85%E6%88%90%E5%8A%9F"><span class="nav-text">2.5、测试：是否安装成功</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#3%E3%80%81Navicat%E8%BF%9E%E6%8E%A5Mysql"><span class="nav-text">3、Navicat连接Mysql</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#3-1%E3%80%81%E4%B8%8B%E8%BD%BDNavicat"><span class="nav-text">3.1、下载Navicat</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-2%E3%80%81%E5%AE%89%E8%A3%85%EF%BC%9A"><span class="nav-text">3.2、安装：</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-3%E3%80%81%E8%BF%9E%E6%8E%A5Mysql%E6%B5%8B%E8%AF%95"><span class="nav-text">3.3、连接Mysql测试</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#4%E3%80%81%E6%93%8D%E4%BD%9C%E8%BF%87%E7%A8%8B%E4%B8%AD-%E5%8F%AF%E8%83%BD%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98"><span class="nav-text">4、操作过程中&#x3D;&#x3D;可能遇到的问题&#x3D;&#x3D;</span></a></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="作者:何锦洋"
      src="/images/avatar.png">
  <p class="site-author-name" itemprop="name">作者:何锦洋</p>
  <div class="site-description" itemprop="description">人们都说，我不是一个聪明人。<br/>但这并影响我，继续前行。</div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives">
          <span class="site-state-item-count">3</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">2</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">2</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author site-overview-item animated">
      <span class="links-of-author-item">
        <a href="https://github.com/2560055298" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;2560055298" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://gitee.com/sheep-are-flying-in-the-sky" title="gitee → https:&#x2F;&#x2F;gitee.com&#x2F;sheep-are-flying-in-the-sky" rel="noopener" target="_blank"><i class="fab fa-google fa-fw"></i>gitee</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://blog.csdn.net/weixin_44537669?spm=1000.2115.3001.5343" title="CSDN → https:&#x2F;&#x2F;blog.csdn.net&#x2F;weixin_44537669?spm&#x3D;1000.2115.3001.5343" rel="noopener" target="_blank"><i class="fab fa-skype fa-fw"></i>CSDN</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://www.cnblogs.com/yangzaikongzhongfei/p/14342575.html" title="博客园 → https:&#x2F;&#x2F;www.cnblogs.com&#x2F;yangzaikongzhongfei&#x2F;p&#x2F;14342575.html" rel="noopener" target="_blank"><i class="fab fa-stack-overflow fa-fw"></i>博客园</a>
      </span>
  </div>



        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://www.yangzaikongzhongfei.com/2021/03/15/mySql%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.png">
      <meta itemprop="name" content="作者:何锦洋">
      <meta itemprop="description" content="人们都说，我不是一个聪明人。<br/>但这并影响我，继续前行。">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="剑客白丁 Blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          mySql安装教程
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2021-03-15 16:29:05" itemprop="dateCreated datePublished" datetime="2021-03-15T16:29:05+08:00">2021-03-15</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-03-17 15:53:18" itemprop="dateModified" datetime="2021-03-17T15:53:18+08:00">2021-03-17</time>
      </span>

  
    <span id="/2021/03/15/mySql%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/" class="post-meta-item leancloud_visitors" data-flag-title="mySql安装教程" title="阅读次数">
      <span class="post-meta-item-icon">
        <i class="far fa-eye"></i>
      </span>
      <span class="post-meta-item-text">阅读次数：</span>
      <span class="leancloud-visitors-count"></span>
    </span>
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <hr>
<blockquote>
<p>安装Mysql前：</p>
<p>​    1、如果：你（曾经安装过)，需要（先卸载干净）， 否则是（装不上）的。所以先谈（卸载）</p>
<p>​    2、如果：你没有（安装过），这是（第一次安装）， 请直接看（第2部分）Mysql安装教程。</p>
</blockquote>
<span id="more"></span> 

<h1 id="1、Mysql彻底卸载"><a href="#1、Mysql彻底卸载" class="headerlink" title="1、Mysql彻底卸载"></a>1、Mysql彻底卸载</h1><figure class="highlight isbl"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">分为三个步骤：</span><br><span class="line">	<span class="number">1</span>、卸载<span class="function"><span class="title">Mysql</span>(软件)</span></span><br><span class="line">	<span class="number">2</span>、删除<span class="function"><span class="title">Mysql</span>(残留文件)</span></span><br><span class="line">	<span class="number">3</span>、删除<span class="function"><span class="title">mysql</span>(注册表)</span></span><br><span class="line">	<span class="number">4</span>、重启电脑</span><br></pre></td></tr></table></figure>

<h2 id="1-1、-卸载Mysql-软件"><a href="#1-1、-卸载Mysql-软件" class="headerlink" title="1.1、 卸载Mysql(软件)"></a>1.1、 卸载Mysql(软件)</h2><img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225100139275.png" alt="image-20210225100139275" style="zoom: 33%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225100652279.png" alt="image-20210225100652279" style="zoom:50%;" />



<h2 id="1-2、删除Mysql-残留文件"><a href="#1-2、删除Mysql-残留文件" class="headerlink" title="1.2、删除Mysql(残留文件)"></a>1.2、删除Mysql(残留文件)</h2><blockquote>
<p><code>把3个目录下的</code>：Mysql目录（删除掉）</p>
</blockquote>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225101506730.png" alt="image-20210225101506730"  />







<h2 id="1-3、-删除mysql-注册表"><a href="#1-3、-删除mysql-注册表" class="headerlink" title="1.3、 删除mysql(注册表)"></a>1.3、 删除mysql(注册表)</h2><ul>
<li><code>第一步:打开注册表</code></li>
</ul>
<blockquote>
<p>window + R中输入：regedit</p>
</blockquote>
<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225102143059.png" alt="image-20210225102143059" style="zoom:33%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225101930080.png" alt="image-20210225101930080" style="zoom:33%;" />

<hr>
<ul>
<li><code>第二步：删除mysql注册表</code></li>
</ul>
<figure class="highlight taggerscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">找到这6个路径：（分别删除Mysql）</span><br><span class="line"></span><br><span class="line">HKEY_LOCAL_MACHINE<span class="symbol">\S</span>YSTEM<span class="symbol">\C</span>urrentControl001<span class="symbol">\S</span>ervices<span class="symbol">\M</span>YSQL</span><br><span class="line">HKEY_LOCAL_MACHINE<span class="symbol">\S</span>YSTEM<span class="symbol">\C</span>urrentControl002<span class="symbol">\S</span>ervices<span class="symbol">\M</span>YSQL</span><br><span class="line">HKEY_LOCAL_MACHINE<span class="symbol">\S</span>YSTEM<span class="symbol">\C</span>urrentControlSet<span class="symbol">\S</span>ervices<span class="symbol">\M</span>YSQL</span><br><span class="line"></span><br><span class="line">HKEY_LOCAL_MACHINE<span class="symbol">\S</span>YSTEM<span class="symbol">\C</span>ontrolSet001<span class="symbol">\S</span>ervices<span class="symbol">\E</span>ventlog<span class="symbol">\A</span>pplication<span class="symbol">\M</span>ySQL</span><br><span class="line">HKEY_LOCAL_MACHINE<span class="symbol">\S</span>YSTEM<span class="symbol">\C</span>ontrolSet002<span class="symbol">\S</span>ervices<span class="symbol">\E</span>ventlog<span class="symbol">\A</span>pplication<span class="symbol">\M</span>ySQL</span><br><span class="line">HKEY_LOCAL_MACHINE<span class="symbol">\S</span>YSTEM<span class="symbol">\C</span>urrentControlSet<span class="symbol">\S</span>ervices<span class="symbol">\E</span>ventlog<span class="symbol">\A</span>pplication<span class="symbol">\M</span>ySQL</span><br></pre></td></tr></table></figure>

<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225103504095.png" alt="image-20210225103504095" style="zoom:50%;" />

<hr>
<h2 id="1-4、重启电脑"><a href="#1-4、重启电脑" class="headerlink" title="1.4、重启电脑"></a>1.4、重启电脑</h2><blockquote>
<p>不重启：可能装不上。</p>
</blockquote>
<h1 id="2、安装Mysql"><a href="#2、安装Mysql" class="headerlink" title="2、安装Mysql"></a>2、安装Mysql</h1><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">1、官网安装</span><br><span class="line">2、选版本（看个人需求）</span><br><span class="line">3、正式安装（MSI版本）是microsoft installer的简写，是微软格式的安装包。</span><br></pre></td></tr></table></figure>

<h2 id="2-1、官网安装"><a href="#2-1、官网安装" class="headerlink" title="2.1、官网安装"></a>2.1、官网安装</h2><blockquote>
<p>安装网址：<a target="_blank" rel="noopener" href="https://dev.mysql.com/downloads/installer/">https://dev.mysql.com/downloads/installer/</a></p>
</blockquote>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225105441638.png" alt="image-20210225105441638" style="zoom: 33%;" />

<hr>
<h2 id="2-2、选择版本"><a href="#2-2、选择版本" class="headerlink" title="2.2、选择版本"></a>2.2、选择版本</h2><img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225105551371.png" alt="image-20210225105551371" style="zoom: 33%;" />

<hr>
<h2 id="2-3、正式安装"><a href="#2-3、正式安装" class="headerlink" title="2.3、正式安装"></a>2.3、正式安装</h2><ul>
<li><code>第一步: Download安装</code></li>
</ul>
<blockquote>
<p>此处我选择：Mysql 8.0.23 最新版本   （其余版本：操作也是一致的）</p>
</blockquote>
<p><img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225110504945.png" alt="image-20210225110504945"></p>
<hr>
<ul>
<li><code>第二步：打开Mysql安装包，安装</code></li>
</ul>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225111135015.png" alt="image-20210225111135015" style="zoom: 50%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225113322331.png" alt="image-20210225113322331" style="zoom: 33%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225113736364.png" alt="image-20210225113736364"  />

<hr>
<blockquote>
<p>如果：出现了这个，点击安装。 </p>
<p>如果：没有出现，说明你（安装其他）软件时，<code>已经装过</code>, 不必慌张。</p>
</blockquote>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225114129657.png" alt="image-20210225114129657" style="zoom: 50%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225113855222.png" alt="image-20210225113855222" style="zoom: 50%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225114831129.png" alt="image-20210225114831129" style="zoom:50%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225114927546.png" alt="image-20210225114927546" style="zoom: 50%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225115502984.png" alt="image-20210225115502984" style="zoom:50%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225115605516.png" alt="image-20210225115605516" style="zoom:50%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225115729705.png" alt="image-20210225115729705" style="zoom:50%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225115819999.png" alt="image-20210225115819999" style="zoom:50%;" />

<hr>
<p><img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225120526443.png" alt="image-20210225120526443"></p>
<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225120617593.png" alt="image-20210225120617593" style="zoom: 33%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225120644968.png" alt="image-20210225120644968" style="zoom:33%;" />

<hr>
<h2 id="2-4、配置环境变量"><a href="#2-4、配置环境变量" class="headerlink" title="2.4、配置环境变量"></a>2.4、配置环境变量</h2><img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225121009744.png" alt="image-20210225121009744" style="zoom:33%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225121045426.png" alt="image-20210225121045426" style="zoom:50%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225121126061.png" alt="image-20210225121126061" style="zoom:50%;" />

<hr>
<p><img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225121531322.png" alt="image-20210225121531322"></p>
<hr>
<h2 id="2-5、测试：是否安装成功"><a href="#2-5、测试：是否安装成功" class="headerlink" title="2.5、测试：是否安装成功"></a>2.5、测试：是否安装成功</h2><blockquote>
<p>cmd中输入：mysql -u root -p</p>
</blockquote>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225122009120.png" alt="image-20210225122009120" style="zoom:50%;" />

<hr>
<h1 id="3、Navicat连接Mysql"><a href="#3、Navicat连接Mysql" class="headerlink" title="3、Navicat连接Mysql"></a>3、Navicat连接Mysql</h1><blockquote>
<p>Navicat连接Mysql 是建立在：Mysql已（成功安装了）的（前提下）</p>
</blockquote>
<h2 id="3-1、下载Navicat"><a href="#3-1、下载Navicat" class="headerlink" title="3.1、下载Navicat"></a>3.1、下载Navicat</h2><blockquote>
<p>官网安装：<a target="_blank" rel="noopener" href="https://navicat.com.cn/download/navicat-premium">https://navicat.com.cn/download/navicat-premium</a></p>
</blockquote>
<p><img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225122953526.png" alt="image-20210225122953526"></p>
<hr>
<h2 id="3-2、安装："><a href="#3-2、安装：" class="headerlink" title="3.2、安装："></a>3.2、安装：</h2><blockquote>
<p>安装方法：一路下一步就好，注意（选择下：安装路径），以后（删除方便）</p>
</blockquote>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225123601921.png" alt="image-20210225123601921" style="zoom:50%;" />





<h2 id="3-3、连接Mysql测试"><a href="#3-3、连接Mysql测试" class="headerlink" title="3.3、连接Mysql测试"></a>3.3、连接Mysql测试</h2><hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225124646562.png" alt="image-20210225124646562" style="zoom: 67%;" />

<hr>
<img src="https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture8/image-20210225125322459.png" alt="image-20210225125322459" style="zoom:50%;" />

<p><code>sql代码：</code></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">create table student(</span><br><span class="line">	stuId int primary key,</span><br><span class="line">	sname varchar(20)</span><br><span class="line">)charset&#x3D;utf8;</span><br><span class="line"></span><br><span class="line">insert into student values(1, &#39;张三&#39;);</span><br><span class="line">insert into student values(2, &#39;王五&#39;);</span><br><span class="line"></span><br><span class="line">select * from student;</span><br></pre></td></tr></table></figure>



<h1 id="4、操作过程中-可能遇到的问题"><a href="#4、操作过程中-可能遇到的问题" class="headerlink" title="4、操作过程中==可能遇到的问题=="></a>4、操作过程中==可能遇到的问题==</h1><blockquote>
<p>会一直更新</p>
</blockquote>

    </div>

    
    
    

    <footer class="post-footer">
          

<div class="post-copyright">
<ul>
  <li class="post-copyright-author">
      <strong>本文作者： </strong>作者:何锦洋
  </li>
  <li class="post-copyright-link">
      <strong>本文链接：</strong>
      <a href="https://www.yangzaikongzhongfei.com/2021/03/15/mySql%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/" title="mySql安装教程">https://www.yangzaikongzhongfei.com/2021/03/15/mySql安装教程/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="noopener" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>

          <div class="post-tags">
              <a href="/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/" rel="tag"><i class="fa fa-tag"></i> 数据库</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
            </div>
            <div class="post-nav-item">
                <a href="/2021/03/16/SSM%E6%95%B4%E5%90%88%E5%9B%BE%E4%B9%A6%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F/" rel="next" title="SSM整合图书管理系统">
                  SSM整合图书管理系统 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>







<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      const activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      const commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">作者:何锦洋</span>
</div>

    </div>
  </footer>

  
  <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/next-boot.js"></script>

  
<script src="/js/local-search.js"></script>






  


<script>
  (function() {
    function leancloudSelector(url) {
      url = encodeURI(url);
      return document.getElementById(url).querySelector('.leancloud-visitors-count');
    }

    function addCount(Counter) {
      const visitors = document.querySelector('.leancloud_visitors');
      const url = decodeURI(visitors.id);
      const title = visitors.dataset.flagTitle;

      Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({ url })))
        .then(response => response.json())
        .then(({ results }) => {
          if (results.length > 0) {
            const counter = results[0];
            leancloudSelector(url).innerText = counter.time + 1;
            Counter('put', '/classes/Counter/' + counter.objectId, { time: { '__op': 'Increment', 'amount': 1 } })
              .catch(error => {
                console.error('Failed to save visitor count', error);
              });
          } else {
              Counter('post', '/classes/Counter', { title, url, time: 1 })
                .then(response => response.json())
                .then(() => {
                  leancloudSelector(url).innerText = 1;
                })
                .catch(error => {
                  console.error('Failed to create', error);
                });
          }
        })
        .catch(error => {
          console.error('LeanCloud Counter Error', error);
        });
    }

    function showTime(Counter) {
      const visitors = document.querySelectorAll('.leancloud_visitors');
      const entries = [...visitors].map(element => {
        return decodeURI(element.id);
      });

      Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({ url: { '$in': entries } })))
        .then(response => response.json())
        .then(({ results }) => {
          for (let url of entries) {
            const target = results.find(item => item.url === url);
            leancloudSelector(url).innerText = target ? target.time : 0;
          }
        })
        .catch(error => {
          console.error('LeanCloud Counter Error', error);
        });
    }

    const { app_id, app_key, server_url } = {"enable":true,"app_id":"kN8wzHXznSkwW0SDw3kORg0c-gzGzoHsz","app_key":"8d9MffFjUL3s6eA2fI5CEcLa","server_url":null,"security":false};
    function fetchData(api_server) {
      const Counter = (method, url, data) => {
        return fetch(`${api_server}/1.1${url}`, {
          method,
          headers: {
            'X-LC-Id'     : app_id,
            'X-LC-Key'    : app_key,
            'Content-Type': 'application/json',
          },
          body: JSON.stringify(data)
        });
      };
      if (CONFIG.page.isPost) {
        if (CONFIG.hostname !== location.hostname) return;
        addCount(Counter);
      } else if (document.querySelectorAll('.post-title-link').length >= 1) {
        showTime(Counter);
      }
    }

    const api_server = app_id.slice(-9) === '-MdYXbMMI' ? `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com` : server_url;

    if (api_server) {
      fetchData(api_server);
    } else {
      fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id)
        .then(response => response.json())
        .then(({ api_server }) => {
          fetchData('https://' + api_server);
        });
    }
  })();
</script>



</body>
</html>
